package com.com.knowledgepaymentmanagementsystem.service.marketing.impl;

import com.com.knowledgepaymentmanagementsystem.mapper.marketing.MenuMapper;
import com.com.knowledgepaymentmanagementsystem.pojo.marketing.Menu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.com.knowledgepaymentmanagementsystem.service.marketing.MenuService;

import java.util.List;

/**
 * @author DELL
 * @version 1.0
 * @description: TODO
 * @date 2025/9/23 16:03
 */
@Service
public class MenuServiceImpl implements MenuService{
    @Autowired
    private MenuMapper menuMapper;
    @Override
    public List<Menu> getMenu(Menu menu){
        return menuMapper.getMenu(menu);
    }

    @Override
    public Object insertMenu(Menu menu) {
        return menuMapper.insert(menu);
    }

    @Override
    public void deleteMenu(Integer menuId) {
        menuMapper.deleteById(menuId);
    }

    @Override
    public void updateMenu(Menu menu) {
        menuMapper.updateById(menu);
    }

}



